package com.cty.pojo;

import java.util.List;

/**
 * @Auther: cty
 * @Date: 2020/3/1 19:56
 * @Description: Teacher实体类
 * @version: 1.0
 */
public class Teacher {
    private String tno;
    private String tname;
    private List<Student> studentList;

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tno='" + tno + '\'' +
                ", tname='" + tname + '\'' +
                ", studentList=" + studentList +
                '}';
    }
}
